package com.typhoon.spring_boot_demo1.constants;

/**
 * 用户操作类型枚举类
 *
 * @author Typhoon
 * @date 2018-08-04 12:41 Saturday
 */
public enum UserOptTypeEnum {
    INSERT(1,"新增"),
    DELETE(2,"删除"),
    UPDATE(3,"更新"),
    QUERY(4,"查询"),
    ;


    private Integer code;
    private String desc;

    UserOptTypeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
